package com.ruoyi.quality.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.annotation.Translation;
import com.ruoyi.common.constant.TransConstant;
import com.ruoyi.common.convert.ExcelDictConvert;
import lombok.Data;

import java.math.BigDecimal;


/**
 * 评价项目视图对象 quality_classification_items
 *
 * @author ruoyi
 * @date 2023-12-05
 */
@Data
@ExcelIgnoreUnannotated
public class QualityClassificationItemsVo {

    private static final long serialVersionUID = 1L;

    /**
     * 项目id
     */
    @ExcelProperty(value = "项目id")
    private Long itemsId;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "项目名称")
    private String itemName;

    /**
     * 父级id
     */
    @ExcelProperty(value = "父级id")
    private Long parentId;

    /**
     * 项目名称
     */
    @ExcelProperty(value = "父级名称")
    private String parentName;

    /**
     * 分值
     */
    @ExcelProperty(value = "分值")
    private BigDecimal score;

    /**
     * 岗位id
     */
    @ExcelProperty(value = "岗位id")
    private Long postId;

    /**
     * 岗位名称
     */
    @ExcelProperty(value = "岗位名称")
    @Translation(type = TransConstant.POST_ID_TO_NAME,mapper = "postId")
    private String postName;

    /**
     * 项目状态（0正常 1停用）
     */
    @ExcelProperty(value = "项目状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_common_status")
    private String status;


}
